<?php
// +----------------------------------------------------------------------
// | Siteplus [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.brsttech.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Pillar <service@brsttech.com>
// +----------------------------------------------------------------------
namespace app\common\model;
use think\Model;

class User extends Model{

    protected $pk       = 'id';
    protected $table    = 'sp_passport_user';
    
    /**
     * 单个
     * @param int $id
     * @return array
     */
    public function getUserBase($id) {
        return $this->where(['id' => $id])->field('id,nickname')->find();
    }
}